package com.javabean;

/*
 *      用户测试类
 *
 *
 *
 * */
//注意文件名一致,等
public class UserTest {
    //主程序的入口,main方法
    public static void main(String[] args) {
        //无参创建对象
        User u1 = new User();
        //赋值
        u1.setPhoneNumber("192012910201");
        u1.setName("陈平安");
        u1.setIDNo("4472188129912918929891");
        u1.setUserName("化");
        u1.setAddress("小镇");
        //调用show()
        u1.show();


        //带参构造
        User u2 = new User("12910012","chen","127911782818","1291","chen");

        //调用show()
        u2.show();
    }
}
